package com.qiaoyanqing.ximalaya.downloadmodule.download_fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.qiaoyanqing.ximalaya.R;

/**
 * A simple {@link Fragment} subclass.
 */

public class DownLoad_LoadingFragment extends Fragment implements View.OnClickListener {
    private Button loading_btn;

    public DownLoad_LoadingFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_down_load__down_loading, container, false);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        loading_btn = (Button) view.findViewById(R.id.loading_btn);
        loading_btn.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent(getContext(),HotRecommendActivity.class);
        startActivity(intent);
    }
}
